<?php
require 'header.php';
echo '<div class="panel-body">';
//载入类
function __autoload($_className){
	require ($_className.'.class.php');
}
if($_POST['send'] == "登录"){
	$login = new deal($_POST['username'],$_POST['userpasswd'],$_POST['send']);
}elseif($_POST['send'] == "注册"){
	$reg = new deal($_POST['username'],$_POST['userpasswd'],$_POST['send'],$_POST['yzm']);
}else{
	$put = new deal($_POST['title'],$_POST['content'],$_POST['send']);
}

require 'footer.php';